infix to prefix in data structure